package com.springboot.demo.design.pattern.strategy;

import org.springframework.stereotype.Service;

/**
 * 初级会员策略
 *
 * @author supu
 * @date 2019-07-05 14:41
 **/
@Service
public class PrimaryMemberStrategy implements MemberStrategy {
    @Override
    public String getType() {
        return "primary";
    }

    @Override
    public double calculate(double price) {
        // 初级会员不打折
        return price;
    }
}
